var form;
var $;
var table;
var layer;
layui.use(['form','jquery','table','layer'],function() {
    form = layui.form;
    $ = layui.$;
    table = layui.table;
    layer = layui.layer;
});
var user = JSON.parse(localStorage.getItem('user'));
//添加查询的操作日志
// $.ajax({
//     url:'/Product/addProductOperationRecord',
//     dataType:'json',
//     data:{
//         "dictValue":"查询反馈日志","cssClass":"查询","createBy":user.userId,
//         "remark":"无内容"
//     }
// });

$.ajax({
    url:'/CourseRecord/getById',
    dataType:'json',
    data:{"microcircleId":$('#proId',window.parent.document).val()},
    success:function (data) {
        data = data.data;
        $('input[name = serialNumber]').val(data.serialNumber);
        $('input[name = artcleTitle]').val(data.artcleTitle);
        $('input[name = categroyName]').val(data.categroyName);
        if(data.result == 1){
            data.result = "审核通过";
        }else if(data.result == 2){
            data.result = "未审核";
        }else if(data.result == 3){
            data.result = "审核驳回";
        }
        $('input[name = result]').val(data.result);
        $('input[name = acticleHits]').val(data.acticleHits);
        $('input[name = collectionNum]').val(data.collectionNum);
        $('input[name = acticleLike]').val(data.acticleLike);
        $('input[name = acticleReviews]').val(data.acticleReviews);
        $('input[name = acticleShare]').val(data.acticleShare);
        $('#article').val(data.article);
        $('#artcleUrl').html('<img src='+data.artcleUrl+' style="float:left; width:155px;"/>');
    }
});